package main

type Receiver struct {
	a int
}

func (t Receiver) M1() {
	t.a = 10
}

func (t *Receiver) M2() {
	t.a = 11
}

func RevicerFunc() {
	var t1 Receiver
	println(t1.a) // 0
	t1.M1()
	println(t1.a) // 0
	t1.M2()
	println(t1.a) // 11

	var t2 = &Receiver{}
	println(t2.a) // 0
	t2.M1()
	println(t2.a) // 0
	t2.M2()
	println(t2.a) // 11

}
